import Vue from 'vue'
import Vuex from 'vuex'
import user from './modules/user'
Vue.use(Vuex)

const store = new Vuex.Store({
  // 组合模块的配置项
  state: {
    // 面包屑
    breadcrumbItems: []
  },
  mutations: {
    set(state, val) {
      state.breadcrumbItems = val
    }
  },
  modules: {
    user
  }
})

export default store
